package org.apelikecoder.bulgariankeyboard;

import android.content.Context;
import android.view.KeyEvent;

public class PhoneticKeyboardTraditional extends BulgarianKeyboardBase {

    public PhoneticKeyboardTraditional(Context context, int mode) {
        super(context, R.xml.bg_phonetic, mode);
    }

    @Override
    public char getMappedKeyCode( int keyCode) {
        char currChar = 0;
        switch (keyCode) {
            case KeyEvent.KEYCODE_A: currChar = cyr_a; break;
            case KeyEvent.KEYCODE_B: currChar = cyr_b; break;
            case KeyEvent.KEYCODE_C: currChar = cyr_tse; break;
            case KeyEvent.KEYCODE_D: currChar = cyr_d; break;
            case KeyEvent.KEYCODE_E: currChar = cyr_e; break;
            case KeyEvent.KEYCODE_F: currChar = cyr_ef; break;
            case KeyEvent.KEYCODE_G: currChar = cyr_g; break;
            case KeyEvent.KEYCODE_H: currChar = cyr_ha; break;
            case KeyEvent.KEYCODE_I: currChar = cyr_i; break;
            case KeyEvent.KEYCODE_J: currChar = cyr_short_i; break;
            case KeyEvent.KEYCODE_K: currChar = cyr_k; break;
            case KeyEvent.KEYCODE_L: currChar = cyr_l; break;
            case KeyEvent.KEYCODE_M: currChar = cyr_m; break;
            case KeyEvent.KEYCODE_N: currChar = cyr_n; break;
            case KeyEvent.KEYCODE_O: currChar = cyr_o; break;
            case KeyEvent.KEYCODE_P: currChar = cyr_p; break;
            case KeyEvent.KEYCODE_Q: currChar = cyr_ya; break;
            case KeyEvent.KEYCODE_R: currChar = cyr_r; break;
            case KeyEvent.KEYCODE_S: currChar = cyr_s; break;
            case KeyEvent.KEYCODE_T: currChar = cyr_t; break;
            case KeyEvent.KEYCODE_U: currChar = cyr_u; break;
            case KeyEvent.KEYCODE_V: currChar = cyr_zhe; break;
            case KeyEvent.KEYCODE_W: currChar = cyr_v; break;
            case KeyEvent.KEYCODE_X: currChar = cyr_soft_sign; break;
            case KeyEvent.KEYCODE_Y: currChar = cyr_hard_sign; break;
            case KeyEvent.KEYCODE_Z: currChar = cyr_ze; break;
            case KeyEvent.KEYCODE_AT: currChar = cyr_cha; break;
            default: break;
        }
        return currChar;
    }

    @Override
    String getSubName() {
        return "Phonetic (Traditional)";
    }
}
